package gpa

import (
	"gitee.com/knowgo/gpa/engine"
	"gitee.com/knowgo/gpa/engine/constants"
	"gitee.com/knowgo/gpa/engine/generator"
	"gitee.com/knowgo/gpa/rt"
	"gitee.com/knowgo/logo"
)

func NewProvider(dialect constants.DIALECT, source string, opt *rt.Option) (*rt.Provider, error) {
	return rt.NewProvider(dialect, source, opt)
}

func NewEngine(dialect constants.DIALECT, source string, opt *engine.Option) (e *engine.Engine, err error) {
	return engine.New(dialect, source, opt)
}

func NewGenerator(dialect constants.DIALECT, logger logo.Logger) (*generator.Generator, error) {
	return generator.New(dialect, logger)
}

var IsRowNotFound = rt.IsRowNotFound
